<?php Yii::app()->clientScript->registerScriptFile(Yii::app()->request->baseUrl . "/js/jquery.placeholder.js", CClientScript::POS_HEAD); ?>
<?php $this->beginContent('//layouts/header'); ?> <?php $this->endContent(); ?>
<?php $this->beginContent('//layouts/mainnav'); ?> <?php $this->endContent(); ?>
<style>
    .wp{background: #fff}
</style> 
<?php if ($this->breadcrumbs) { ?>
    <div class="breadcrumbs wp">
        <?php
        $this->widget('zii.widgets.CBreadcrumbs', array(
            'links' => array('账户管理' => array('/home'), $this->breadcrumbs),
            'separator' => '&nbsp;&gt;&nbsp;'
        ));
        ?>
    </div>
<?php } ?>
<?php if ($this->homesite) { ?>
    <div class="homecontent cl wp">
        <div class="sidenav z">
            <div class="avatar small z tm5">
                <img src="" class="avatar-small" id="homemainId_home" align="absmiddle"/>

                <div class="avatar_mask mask_small"></div>
            </div>
            <?php
            $this->widget('zii.widgets.CMenu', array(
                'items' => array(
                    array('label' => '我的订单', 'url' => array('/home/'), 'active' => $this->action->id == 'index'),
                    array('label' => '我的红包', 'url' => array('/home/coupons'), 'active' => $this->action->id == 'coupons'),
                    array('label' => '地址管理', 'url' => array('/home/address'), 'active' => $this->action->id == 'address'),
                    array('label' => '安全设置', 'url' => array('/home/security'), 'active' => $this->action->id == 'security'),
                    array('label' => '头像', 'url' => array('/home/profile'), 'active' => $this->action->id == 'profile'),
//                        array('label' => '分享设置', 'url' => array('/home/share'), 'active' => $this->action->id == 'share'),
                ),
                'activeCssClass' => 'on',
                'htmlOptions' => array('class' => 'cl z')
            ));
            ?>
        </div>
        <div class="rightbody y">
            <div class="hometitle"><?php echo CHtml::encode($this->pageTitle) ?></div>
        <?php } ?>
        <?php echo $content; ?>
        <?php if ($this->homesite) { ?>
        </div>
    </div>
<?php } ?>
<?php $this->beginContent('//layouts/footer'); ?> <?php $this->endContent(); ?>
<?php $this->beginContent('//layouts/cartbottom'); ?> <?php $this->endContent(); ?>
<script type="text/javascript">
    $(function() {
        ajaxGet('.store-list-box', 'getUserCart', 'account', 'html');
        ajaxGet('#homemainId', 'getHeadImgByType', 'account', 'html');  
        var homehead = $('#homemainId_home');
        homehead.attr('src',$('#homemainId').attr('src'));
    });
</script>
